package com.seaboxdata.dao;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.seaboxdata.entity.MysqlDeleteVo;
import com.seaboxdata.entity.OldStrategyConfig;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

@Mapper
public interface MysqlDao {

    @DS("queuing")
    int dataAge(@Param("deleteVo") MysqlDeleteVo deleteVo);

    @DS("queuing")
    Date getLatestDate(@Param("config") OldStrategyConfig config);

}
